<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-22 19:26:14
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-22 19:32:49
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>尺寸</title>
    <style>
        div{
            /* width: 200px;
            height: 200px; */
            width: 160px;
            height: 160px;
            background-color:pink;
            padding:20px;
            /* 内减模式 不需要手动减法 如padding和border不会撑大盒子*/
            box-sizing:border-box;
        }
    </style>
</head>
<body>
    <div>div标签</div>
</body>
</html>